package org.celery.modules.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderIsNewEnum {
    NEW("新用户", 1),

    OLD("老用户", 2),
    ;
    private String name;
    private int type;

    public static String getName(int status) {
        if (status == NEW.getType()) {
            return NEW.getName();
        } else if (status == OLD.getType()) {
            return OLD.getName();
        } else {
            return "";
        }
    }

}
